using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;


/// <summary>
/// Summary description for BasicPage
/// </summary>
public partial class BasePage:System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public bool IsPersolnel
    {
        get
        {
            User user = Session["user"] as User;
            if (user == null) return false;
            if (user.Role > 0 && user.Role <= 3) return true;
            return false;
        }
    }
    public int GetCurrentUserRole()
    {
        User user = Session["user"] as User;
        if (user == null) return 10;
        return user.Role;
    }

    
    
}
